package com.basic.business.model.dto;

import com.basic.business.common.config.ValidationGroups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 角色菜单关系表(SysRoleMenuRel)实体类
 *
 * @author huage
 * @since 2021-07-20 14:33:48
 */
@ApiModel("SysRoleMenuRelDto")
@Data
public class SysRoleMenuRelDto implements Serializable {

    private static final long serialVersionUID = 384808107337220904L;

    @ApiModelProperty(value = "$column.comment")
    @NotNull(groups = {ValidationGroups.Update.class, ValidationGroups.Delete.class})
    @Min(value = 1, groups = {ValidationGroups.Update.class, ValidationGroups.Delete.class})
    private Integer id;

    private String roleId;

    private String menuId;

}
